package com.jhd.fuzhou.service;


import com.jhd.fuzhou.vo.JsonForResult;

import java.util.Map;

import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

public interface PunishmentService {
    //获取行政处罚列表，传pageIndex=1&pageSize=10&userName=admin
    @GET("supervise/administrativePunishment/getPunishmentList")
    Call<JsonForResult> getPunishmentList(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取行政处罚,详情文档
    @GET("supervise/administrativeAccessory/getListByPunishmentId")
    Call<JsonForResult> getListByPunishmentId(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取行政处罚,违法事实,传punishmentId
    @GET("supervise/administrativePunishment/getAdministrativeIllegal")
    Call<JsonForResult> getAdministrativeIllegal(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //获取行政处罚列表，传pageIndex=1&pageSize=10&userName=admin
    @GET("supervise/administrativePunishment/getAppPunishmentList")
    Call<JsonForResult> getAppPunishmentList(@Header("Authorization") String token, @QueryMap Map<String, Object> params);
    //获取审批人列表，传userId
    @GET("uc/sysUser/getSysUserListAll")
    Call<JsonForResult> getSysUserListAll(@Header("Authorization") String token, @QueryMap Map<String, String> params);
    //保存行政处罚单据
    @POST("supervise/administrativePunishment/saveAdministrativePunishment")
    Call<JsonForResult> getAppPunishmentList(@Header("Authorization") String token,@Body RequestBody requestBody);
}
